import request from "@/js/request";
import qs from "qs";

export function getShopsList(data) {
    return request({
        url: "/port/activity/getAllAddress",
        method: "post",
        data: qs.stringify(data)
    });
}

export function updateAddress(data) {
    return request({
        url: "/port/activity/updateAddress",
        method: "post",
        data: qs.stringify(data)
    });
}

export function uploadFile(data) {
    return request({
        url: "/port/file/upload",
        method: "post",
        headers: {
            "content-type": "multipart/form-data"
        },
        data: data.fd,
        params: {
            ...data.params,
            t: Math.random()
        }
    });
}